import java.util.Stack;

public class Test {
    public static void main(String[] args) {
        Stack<Integer> stack = new Stack<>();
        stack.push(1);
        stack.push(1);
        stack.push(1);
        int x = stack.pop();
        System.out.println(x);
        int y = stack.peek();
        System.out.println(y);


    }
}
